package sound;

import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.DataLine;

/**
 * @author Stian Sanden Skauge
 */
public interface Stream {

	/**
	 * Whether the stream is incomming.
	 * 
	 * @return true if the stream is incomming.
	 */
	public boolean isInputStream();

	/**
	 * Getter for the AudioInputStream.
	 * 
	 * @return AudioInputStream
	 */
	public AudioInputStream getStream();

	/**
	 * Getter for the audio network stream.
	 * 
	 * @return DataLine
	 */
	public DataLine getDataLine();

	/**
	 * Getter for the audio format for the stream.
	 * 
	 * @return AudioFormat
	 */
	public AudioFormat getFormat();

}
